package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.db.entity.DeviceState;
import com.mingqijia.gassafety.db.entity.Dtu;
import com.mingqijia.gassafety.webserver.request.workorder.asst.WorkOrderCreateRequest;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName SmartKitchenService.java
 * @Description TODO
 * @createTime 2023年06月27日
 */
public interface SmartKitchenService {

    void create(WorkOrderCreateRequest req);

    /**
     * 同步报警状态到智慧厨房【家用燃气报警器】
     * @param dtu
     * @param alarmStatus
     */
    void syncAlarmStatusNotice(Dtu dtu, Integer alarmStatus);

    /**
     * 处理又报警变更为故障的情况推送ßß
     * @param dtu
     * @param deviceState
     * @param prepareDeviceState
     */
    void handleBrokenSyncAlarmStatusNotice(Dtu dtu,DeviceState deviceState,DeviceState prepareDeviceState);
}